package com.zhengqing.wxmp.util.wchat;

public interface WchatService {

    /**
     * 小程序登录
     * @param code
     * @return
     */
    AppLoginResponse appLogin(String code);

    /**
     * accessToken
     * @return
     */
    AccessTokenResponse accessToken(String grantType);

    /**
     * phone
     * @return
     */
    PhoneResponse phone(String accessToken, String code);

    /**
     * 发送模板消息
     * @param accessToken
     * @param request
     * @return
     */
    WchatBaseResponse sendTemplateMessage(String accessToken, SendTemplateMsgRequest request);


    /**
     * 发送订阅消息
     * @param accessToken
     * @param sendSubscribeMsgRequest
     * @return
     */
    WchatBaseResponse sendSubscribeMessage(String accessToken, SendSubscribeMsgRequest sendSubscribeMsgRequest);

    /**
     * 身份证信息
     * @param accessToken
     * @param imgUrl
     * @return
     */
    IdCardResponse idCardInfo(String accessToken, String imgUrl);
}
